
function logout()
{
	var mpa_token = $.cookie('mpa_token');
	if(mpa_token)
	{
		$("#tk").val(mpa_token);
		$.cookie("mpa_token", "", {path:"/", expires:-1}); // 删除 cookie
	}
	//alert('b');
	$("#logonform").attr("action", "/logout");
	$("#logonform").attr("target", "_self");
	//alert('c');
	$("#logonform").submit();
}

function pwd()
{
	var mpa_token = $.cookie('mpa_token');
	if(mpa_token)
	{
		$('#logonform').attr("action", "/pwd");
		$("#logonform").target="_self";
		$("#logonform").submit();
	}
	else
	{
		$('#logonform').attr("action", "/login");
		$("#logonform").target="_self";
		$("#logonform").submit();
	}
}
